﻿#include <iostream>
#define DEBUG

using std::cout;
using std::cin;
using std::endl;

template<class T>
void swap( T& a, T& b ){
    T temp;
	temp = a;
	a = b;
	b = temp;
}

void selection_sort( int ar[], const int length ){
    int cur_min = 0;
    for( int i = 0; i < length - 1; i++ ){
        cur_min = i;
        for( int j = length - 1; j > i; j-- ){
            if( ar[j] < ar[cur_min] ){
                cur_min = j;
                #ifdef DEBUG
                cout << "New cur_min = " << j << endl;
                #endif
            }
        }
        swap( ar[i], ar[cur_min] );
        #ifdef DEBUG
        cout << "Iteration was completed on i = " << i << endl;
        #endif
    }
}

int main(){
    int max = 100000;
    int ar[max], count = 0;
    while( cin >> ar[count] ){
        ++count;
    }
    selection_sort( ar, count );
    for( int i = 0; i < count; i++ ){
        cout << ar[i] << endl;
    }
}
